<script setup>
import {VueQueryDevtools} from "@tanstack/vue-query-devtools";
import {useMessage} from "naive-ui";

window.$message = useMessage()

const isDev = import.meta.env.DEV
</script>

<template>
  <div>
    <!-- 路由出口写法，保证 NaiveUI 上下文能正确传递 -->
    <router-view v-slot="{ Component }">
      <component :is="Component"/>
    </router-view>
    <vue-query-devtools v-if="isDev" initial-is-open/>
  </div>
</template>

<style scoped>

</style>